/*
 * @Author: cgl
 * @Date: 2023-04-19 14:57:57
 * @LastEditors: cgl
 * @LastEditTime: 2023-05-23 18:23:41
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\resourse\equipmentCertificate.js
 * @Description: 
 * 
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved. 
 */
import request from '@/utils/request'

// 查询设备证书分页列表
export function equipmentCertificateList(params) {
  return request({
    url: '/basic/equipment/certificate/list',
    method: 'get',
    params,
  })
}
// 导出设备证书列表
export function equipmentCertificateExport(data) {
  return request({
    url: `/basic/equipment/certificate/export`,
    method: "post",
    data,
  });
}
// 查询设备证书列表
export function equipmentCertificateListing(equipmentId) {
  return request({
    url: '/basic/equipment/certificate/listing/' + equipmentId,
    method: 'get',
  })
}
// 获取设备证书详细信息
export function equipmentCertificateDetail(equipmentCertificateId) {
  return request({
    url: '/basic/equipment/certificate/getInfo/' + equipmentCertificateId,
    method: 'get'
  })
}
// 新增设备证书
export function equipmentCertificateAdd(data) {
  return request({
    url: `/basic/equipment/certificate/add`,
    method: "post",
    data,
  });
}
// 修改设备证书
export function equipmentCertificateEdit(data) {
  return request({
    url: '/basic/equipment/certificate/edit',
    method: 'post',
    data,
  })
}
// 删除设备证书
export function equipmentCertificateDelete(equipmentCertificateIds) {
  return request({
    url: '/basic/equipment/certificate/remove/' + equipmentCertificateIds,
    method: 'get'
  })
}